<%@ page language="java" import="java.util.*,com.entity.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
if(request.getAttribute("result")!=null){
	if(request.getAttribute("result").equals("ok")){
	%>
		<script>alert("提交成功");location='/ryjd.do?state=findall'</script>
	<%
	}else{
	%>
		<script>alert("提交失败");</script>
	<%
	}
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
  <head>
    
    <title>人员资料</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css" href="css/style.css">
<script>
function SubmitForm(){
	var xiang = document.getElementById("xiang").value;
	var jdrq1 = document.getElementById("jdrq1").value;
	var jdrq2 = document.getElementById("jdrq2").value;
	
	if(jdrq1==""||jdrq2=="")
	{
	   alert("请选择时间");
	   return false;
	}
	if(xiang==""||xiang=='请选择乡:请选择乡')
	{
	   alert("请选择乡");
	   return false;
	}
	return true;
}
</script>
<script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
  </head>
  
  <body onload="loaddw();selectedaddr();">
  <%Dlyh dlyh = (Dlyh)request.getSession().getAttribute("dlyh");  %>
   <input type="hidden" value="<%=dlyh.getZd().getTypename() %>:<%=dlyh.getZd().getId() %>" id="dlyhzd" name="dlyhzd" />
    <script language="javascript" type="text/javascript" src="js/qy.js"></script>
<div style="display: none;" id="PageHeader" class="PageHeader"></div>
<table class="TableTop" width="70%" align="center">
   <tbody><tr>
      <td class="left"></td>
      <td class="center subject">
         人员借调-${ryzl.xm}</td>
      <td class="right"></td>
   </tr>
</tbody></table>
<form action="ryjd.do?state=saveryjdadd" method="post" id="form1" name="form1" onSubmit="return SubmitForm();" >
<input id="uid" name="uid" value="${ryzl.id}" type="hidden"/>
<table class="TableBlock no-top-border" width="70%" align="center">
    <tbody>
     <tr>
        <td class="TableData" valign="top" nowrap="nowrap">所在部门：</td>
        <td class="TableData">
            ${ryzl.zdByBmbh.zdqc }
        </td>
      </tr>
      <tr>
        <td class="TableData" valign="top" nowrap="nowrap">借调期限：</td>
        <td class="TableData">
        <input name="jdrq1" type="text" class="SmallInput" id="jdrq1"  maxlength="100" onFocus="WdatePicker()"/>
        <input name="jdrq2" type="text" class="SmallInput" id="jdrq2"  maxlength="100" onFocus="WdatePicker()"/>        
        </td>
      </tr>
      <tr>
        <td class="TableData" valign="top" nowrap="nowrap">借调部门：</td>
        <td class="TableData">
          <select disabled="disabled" id="sheng" name="sheng" >
           <option value="河北省">河北省</option>
        </select>市
        <select id="shi" name="shi" onchange="shichange(this.value)">
           <option>请选择市</option>
           <%List xianlist=(List) request.getSession().getAttribute("shilist"); 
            for(int i=0;i<xianlist.size();i++){%>
           <option value="<%=((Zd)xianlist.get(i)).getId() %>"><%=((Zd)xianlist.get(i)).getTypename() %></option>
           <%} %>
        </select>市
        <select id="xian" name="xian" onchange="xianchange(this.value)">
           <option>请选择县</option>
        </select>县
        <select id="xiang"  name="xiang" onchange="xiangchange(this.value)" >
         <option >请选择乡</option>
        </select>乡
        <select id="cun"  name="cun" >
        <option >请选择村</option>
        </select>村
        </td>
      </tr>
    <tr class="TableControl" align="center">
      <td colspan="2" nowrap="nowrap"> 
        <input id="btn_submit" value="提交" class="BigButtonB"  type="submit" />&nbsp;&nbsp; 
        <input id="btn_submit" value="返回" class="BigButtonB"  type="button" onClick="history.back();"></td>
    </tr>
  </tbody></table>
</form>

  </body>
</html>
